package com.ff.xyh;

import com.ff.xyh.common.servicebase.config.MybatisPlusConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

/**
 * @Auther FF
 * @Date 2022年 11月 04日
 * @Time 18:59
 */

@EnableDiscoveryClient // 开启服务发现 将微服务注册到nacos
//@EnableFeignClients // 开启服务调用

@EnableFeignClients(
        basePackages = {
                "com.ff.xyh.feign.client.message",
                "com.ff.xyh.feign.client.post",
                "com.ff.xyh.feign.client.userfront",
                "com.ff.xyh.feign.client.minio"
        }
)

//@EnableFeignClients(
//        // 指定载入的类
//        clients = {
//                FrontUserClient.class,
//                FrontBlackerClient.class,
//                UserFavoriteClient.class,
//                UserFollowerClient.class,
//                UserRestrictedClient.class
//        },
//        defaultConfiguration = FeignOkHttpConfig.class
//)
@SpringBootApplication( exclude =
        DataSourceAutoConfiguration.class
)
@ComponentScan(excludeFilters = @ComponentScan.Filter(
        type = FilterType.ASSIGNABLE_TYPE,
        classes = {
                MybatisPlusConfig.class
        }))
public class Consumer_8020_FrontApplication {
    public static void main(String[] args) {
        SpringApplication.run(Consumer_8020_FrontApplication.class, args);
    }

}
